import LayoutBase from '@/page/layout/base'
import SliderEmail from '@/page/layout/slider/email'

export default [
  {
    path: '/mail',
    component: LayoutBase,
    children: [
      {
        path: '/pro',
        component: SliderEmail,
        children: [
          {
            path: '/mail/index',
            name: 'index',
            component: () => import(/* webpackChunkName: "pending" */'@/views/mail/review/inbox'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/write/index',
            name: 'write',
            component: () => import(/* webpackChunkName: "notice" */'@/views/mail/write/index'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/write/edit',
            name: 'edit',
            component: () => import(/* webpackChunkName: "notice" */'@/views/mail/detail/edit'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/pending/index',
            name: 'pending',
            component: () => import(/* webpackChunkName: "pending" */'@/views/mail/review/pendingbox'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/unread',
            name: 'unread',
            component: () => import(/* webpackChunkName: "unread" */'@/views/mail/review/unreadbox'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/approval',
            name: 'approval',
            component: () => import(/* webpackChunkName: "approval" */'@/views/mail/approval'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/approval/apply/detail',
            name: 'detail',
            component: () => import(/* webpackChunkName: "detail" */'@/views/mail/approval/applyDetail'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/approval/apply/edit',
            name: 'edit',
            component: () => import(/* webpackChunkName: "edit" */'@/views/mail/approval/edit'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/approval/exam/detail',
            name: 'detail',
            component: () => import(/* webpackChunkName: "exam/detail" */'@/views/mail/approval/examDetail'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/send/index',
            name: 'send',
            component: () => import(/* webpackChunkName: "send" */'@/views/mail/review/outbox'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/delete/index',
            name: 'delete',
            component: () => import(/* webpackChunkName: "delete" */'@/views/mail/delete/index'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/draft/index',
            name: 'draft',
            component: () => import(/* webpackChunkName: "draft" */'@/views/mail/draft/index'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/garbage/index',
            name: 'garbage',
            component: () => import(/* webpackChunkName: "notice" */'@/views/mail/garbage/index'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/label/index',
            name: 'label',
            component: () => import(/* webpackChunkName: "label" */'@/views/mail/label/index'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/customer/detail',
            name: 'detail',
            component: () => import(/* webpackChunkName: "notice" */'@/views/mail/detail/detail'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/customer/edit',
            name: 'edit',
            component: () => import(/* webpackChunkName: "edit" */'@/views/mail/draft/edit'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/mailCustomer/:id',
            name: 'mailCustomer',
            component: () => import(/* webpackChunkName: "mailCustomer" */'@/views/mail/review/customerbox'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/administration',
            name: 'administration',
            component: () => import(/* webpackChunkName: "administration" */'@/views/mail/Administration'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/administration/template/add',
            name: 'addMailTemplate',
            component: () => import(/* webpackChunkName: "administration" */'@/views/common/addMailTemplate'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/administration/template/edit',
            name: 'addMailTemplate',
            component: () => import(/* webpackChunkName: "administration" */'@/views/common/addMailTemplate'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/administration/sign/add',
            name: 'addMailSigns',
            component: () => import(/* webpackChunkName: "addMailSigns" */'@/views/common/addMailSign'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/administration/sign/edit',
            name: 'addMailSign',
            component: () => import(/* webpackChunkName: "addMailSign" */'@/views/common/addMailSign'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/common/detail',
            name: 'detail',
            component: () => import(/* webpackChunkName: "detail" */'@/views/mail/detail/commonDetail'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/edit',
            name: 'edit',
            component: () => import(/* webpackChunkName: "edit" */'@/views/mail/draft/edit'),
            meta: {title: '邮件'}
          },

          {
            path: '/mail/underling/:id/:email',
            name: 'nextbox',
            component: () => import(/* webpackChunkName: "underling" */'@/views/mail/review/nextbox'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/document',
            name: 'document',
            component: () => import(/* webpackChunkName: "document" */'@/views/mail/document'),
            meta: {title: '邮件'}
          },
          {
            path: '/mail/success',
            name: 'success',
            component: () => import(/* webpackChunkName: "document" */'@/views/mail/success'),
            meta: {title: '邮件'}
          },
        ]
      }
    ],
  },
  {
    path: '/mail/approval/review',
    name: '/mail/approval/review',
    component: () => import(/* webpackChunkName: "pending" */'@/views/mail/approval/review'),
    meta: {title: '邮件'}
  },
  {
    path: '/mail/write/Review',
    name: '/mail/write/Review',
    component: () => import(/* webpackChunkName: "mailReview" */'@/views/mail/write/Review'),
    meta: {title: '写信-预览'}
  },
  {
    path: '/mail/send/review',
    name: '/mail/send/review',
    component: () => import(/* webpackChunkName: "pending" */'@/views/mail/send/review'),
    meta: {title: '查看退信邮件'}
  }
]
